<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css样式使用的三种方式</title>
    <style>
        div{
            color: cornflowerblue;
            margin-top: 10px;
        }
        a{
            text-decoration: none;
            color: black;
        }
        li{
            list-style-type: none;
        }
        #d1{
            background-color: pink;
        }
        .div{
            border: 1px solid purple;
        }
        #d1,.div{
            background-color: coral;
        }
    </style>
    <link rel="stylesheet" href="../../css/css_demo.css">
</head>
<body>
    <div style="border: 1px solid red;width: 100px;height: 100px">
        这是一个div
    </div>
    <div id="d1">
        这是第二个div
    </div>
    <div class="div">
        这是第三个div
    </div>
<div>
        <ul>
            <li>
                <a href="#">电脑</a> /
                <a href="#">配件</a> /
                <a href="#">办公</a> /
                <a href="#">文具</a>
            </li>
             <li>
                <a href="#">工业品</a> /
                <a href="#">商业</a> /
                <a href="#">农业</a> /
                <a href="#">定制</a>
            </li>
        </ul>
    </div>
</body>
</html>